from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from time import sleep
from options import options

driver = webdriver.Chrome(options=options)
driver.get(r'https://www.baidu.com/')
sleep(1)
driver.find_element(By.ID,'kw').send_keys('seleniumm')
sleep(1)
driver.find_element(By.ID,'kw').send_keys(Keys.BACK_SPACE)
sleep(1)
driver.find_element(By.ID,'kw').send_keys(Keys.SPACE)
sleep(1)
driver.find_element(By.ID,'kw').send_keys('教程')
sleep(1)
driver.find_element(By.ID,'kw').send_keys(Keys.CONTROL,'a')
sleep(1)
driver.find_element(By.ID,'kw').send_keys(Keys.CONTROL,'c')
sleep(1)
driver.find_element(By.ID,'kw').send_keys(Keys.CONTROL,'v')
sleep(2)